Skip to content

bugfix: retain PD decode caches during schedule overlap. - #2778

Draft
wai-bao wants to merge 1 commit into
xLLM-AI:mainfrom
wai-bao:bugfix/pd-decode-cache-lifetime
Draft

wai-bao wants to merge 1 commit into
xLLM-AI:mainfrom
wai-bao:bugfix/pd-decode-cache-lifetime

Conversation

@wai-bao

@wai-bao wai-bao commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Retain the KV blocks and per-sequence cache slots of an in-flight PD decode batch until its overlapped result is collected. A Prefill transfer can otherwise write into storage recycled while Decode still uses it.
  • Defer allocation-pressure decisions while an outstanding batch can release cache blocks, and extend the existing scheduler lifetime test to cover premature KV block and recurrent-state slot reuse.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T18:54:53.907438Z 1153550 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1ed53112e0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@wai-bao
wai-bao force-pushed the bugfix/pd-decode-cache-lifetime branch 3 times, most recently from e5aefbc to 80ed44d Compare November 18, 2026 13:11

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 80ed44d39a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@wai-bao
wai-bao force-pushed the bugfix/pd-decode-cache-lifetime branch 6 times, most recently from d20db70 to 672b9ff Compare November 18, 2026 13:53

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 672b9ff437

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@wai-bao
wai-bao force-pushed the bugfix/pd-decode-cache-lifetime branch 4 times, most recently from 30ae833 to 3f1a391 Compare November 18, 2026 14:26

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3f1a391bf2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@wai-bao
wai-bao force-pushed the bugfix/pd-decode-cache-lifetime branch 3 times, most recently from ab69e92 to 86bb3d3 Compare November 18, 2026 14:47
@wai-bao
wai-bao force-pushed the bugfix/pd-decode-cache-lifetime branch 7 times, most recently from ca923f5 to ba447d4 Compare November 20, 2026 09:29
@wai-bao
wai-bao force-pushed the bugfix/pd-decode-cache-lifetime branch 2 times, most recently from 1c563be to d367c55 Compare November 23, 2026 10:47

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d367c5586d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@wai-bao
wai-bao force-pushed the bugfix/pd-decode-cache-lifetime branch 3 times, most recently from ff2a8fb to db5b00e Compare November 24, 2026 08:06

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: db5b00eed8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread xllm/core/scheduler/scheduler_policy.h Resolved
@wai-bao
wai-bao force-pushed the bugfix/pd-decode-cache-lifetime branch 2 times, most recently from 9bd37a5 to bf1eddf Compare November 26, 2026 06:38

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bf1eddf67d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 11535501fb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread xllm/core/runtime/schedule_overlap.cpp Resolved
@wai-bao
wai-bao force-pushed the bugfix/pd-decode-cache-lifetime branch 6 times, most recently from 9e25945 to 763e4de Compare December 1, 2026 06:14
@wai-bao
wai-bao marked this pull request as draft December 2, 2026 10:21
@wai-bao
wai-bao force-pushed the bugfix/pd-decode-cache-lifetime branch 2 times, most recently from ee8cfbe to b0ce2d6 Compare December 3, 2026 09:41
@wai-bao
wai-bao force-pushed the bugfix/pd-decode-cache-lifetime branch from b0ce2d6 to b158abb Compare December 4, 2026 10:01

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants